function love.mousepressed(xp, yp, bp)
    if 350 < yp and yp < 450 and bp == 1 then
        if 100 < xp and xp < 300 then
            SwitchScence("replacegreen")
        elseif 500 < xp and xp < 700 then
            love.event.quit()
        end
    end
end

function love.draw()
    love.graphics.setColor(colors.pink)
    love.graphics.rectangle("fill", 0, 0, 800, 600)

    love.graphics.setFont(font_b)
    love.graphics.setColor(colors.darkGrey)
    love.graphics.print("want to leave?", 200, 100)

    local x, y = love.mouse.getPosition()
    if ((100 < x and x < 300) or (500 < x and x < 700)) and 350 < y and y < 450 then
        if 100 < x and x < 300 then
            love.graphics.setColor(colors.darkGrey)
            love.graphics.rectangle("fill", 100, 350, 200, 100)
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill", 500, 350, 200, 100)
        else
            love.graphics.setColor(colors.red)
            love.graphics.rectangle("fill", 100, 350, 200, 100)
            love.graphics.setColor(colors.darkGrey)
            love.graphics.rectangle("fill", 500, 350, 200, 100)
        end
    else
        love.graphics.setColor(colors.red)
        love.graphics.rectangle("fill", 100, 350, 200, 100)
        love.graphics.setColor(colors.red)
        love.graphics.rectangle("fill", 500, 350, 200, 100)
    end
    love.graphics.setColor(colors.white)
    love.graphics.setFont(font_b)
    love.graphics.print("return", 120, 370)
    love.graphics.print("exit", 550, 370)
end
